package cn.akwangl.design.pattern.behavioral.command.v3;

/**
 * 树叶构件: 具体命令1
 *
 * @author youyongkun
 * @date 2021/12/7 17:03
 */
public class ConcreteCommand1 implements AbstractCommand {
    private CompositeReceiver receiver;
    ConcreteCommand1() {
        receiver = new CompositeReceiver();
    }
    @Override
    public void execute() {
        receiver.action1();
    }
}